package com.lucy.disk.dao;

import com.lucy.disk.domain.entity.FileEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import java.util.List;

/**
 * @author kindear
 */
public interface FileEntityDAO extends JpaRepository<FileEntity,String> {
    /**
     * 批量删除
     * @param ids
     */
    @Modifying
    void deleteByIdIn(List<String> ids);

    /**
     * 批量获取
     * @param ids
     * @return
     */
    List<FileEntity> findByIdIn(List<String> ids);
}
